package com.ruibang.glass.material.entity.cp;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 半成品入库
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GMaterialBcpProductsIn对象", description = "半成品入库")
@TableName(value = "g_material_cp_products_in")
public class MaterialCPProductsIn extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "入库单号")
    private String inStorageOrderNo;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "制单人")
    private String preparer;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "物品Id")
    private Integer itemId;

    @ApiModelProperty(value = "物品名称")
    private String itemName;

    @ApiModelProperty(value = "物品编码")
    private String itemCode;

    @ApiModelProperty(value = "规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "LoT数量")
    private BigDecimal lotQuantity;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "Model等级")
    private String modelGrade;

    @ApiModelProperty(value = "A型架")
    private String aTypeShelf;

    @ApiModelProperty(value = "库位")
    private String storageLocation;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate productionDate;

    @ApiModelProperty(value = "保质期")
    private Integer shelfLife;

    @ApiModelProperty(value = "过期日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate expirationDate;

    @ApiModelProperty(value = "物品备注")
    private String itemRemarks;

    @ApiModelProperty(value = "产线")
    private String productLine;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "品级（人工）")
    private String levelRg;

    @ApiModelProperty(value = "品级（机器）")
    private String levelJq;

    @ApiModelProperty(value = "品级（最终）")
    private String levelFinish;



}
